The toggled signal was incorrectly emitting the pspec instead of the switch state.
Closes https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/7943
Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3493>
(cherry picked from commit
7fe05f6bc9854f46f17c6db42ab9e9c3e9b4810c)
this.checkAccessibleState();
}
- _onToggled(sw, state) {
- this.emit('toggled', state);
+ _onToggled() {
+ this.emit('toggled', this._switch.state);
this.checkAccessibleState();
}